package com.example.springboot.service;

import com.example.springboot.common.Constants;
import com.example.springboot.entity.SysDict;
import com.example.springboot.entity.SysDictExample;
import com.example.springboot.mapper.SysDictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: jyf2000jyf
 * @Date: 2022/5/23
 * @Time: 10:24
 * @Email: 904593011@qq.com
 * @Description:
 **/
@Service
public class DictServiceImpl implements DictService {

    @Autowired
    SysDictMapper dictMapper;

    @Override
    public List<SysDict> getIcons() {
        SysDictExample example = new SysDictExample();
        example.createCriteria().andTypeEqualTo(Constants.DICT_TYPE_ICON);
        return dictMapper.selectByExample(example);
    }
}
